package com.leased.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CLocationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CLocationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLIdIsNull() {
            addCriterion("l_id is null");
            return (Criteria) this;
        }

        public Criteria andLIdIsNotNull() {
            addCriterion("l_id is not null");
            return (Criteria) this;
        }

        public Criteria andLIdEqualTo(Integer value) {
            addCriterion("l_id =", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotEqualTo(Integer value) {
            addCriterion("l_id <>", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdGreaterThan(Integer value) {
            addCriterion("l_id >", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("l_id >=", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdLessThan(Integer value) {
            addCriterion("l_id <", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdLessThanOrEqualTo(Integer value) {
            addCriterion("l_id <=", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdIn(List<Integer> values) {
            addCriterion("l_id in", values, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotIn(List<Integer> values) {
            addCriterion("l_id not in", values, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdBetween(Integer value1, Integer value2) {
            addCriterion("l_id between", value1, value2, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotBetween(Integer value1, Integer value2) {
            addCriterion("l_id not between", value1, value2, "lId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdIsNull() {
            addCriterion("login_type_id is null");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdIsNotNull() {
            addCriterion("login_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdEqualTo(Integer value) {
            addCriterion("login_type_id =", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdNotEqualTo(Integer value) {
            addCriterion("login_type_id <>", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdGreaterThan(Integer value) {
            addCriterion("login_type_id >", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("login_type_id >=", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdLessThan(Integer value) {
            addCriterion("login_type_id <", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("login_type_id <=", value, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdIn(List<Integer> values) {
            addCriterion("login_type_id in", values, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdNotIn(List<Integer> values) {
            addCriterion("login_type_id not in", values, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("login_type_id between", value1, value2, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("login_type_id not between", value1, value2, "loginTypeId");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNull() {
            addCriterion("login_time is null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNotNull() {
            addCriterion("login_time is not null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeEqualTo(Date value) {
            addCriterion("login_time =", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotEqualTo(Date value) {
            addCriterion("login_time <>", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThan(Date value) {
            addCriterion("login_time >", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("login_time >=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThan(Date value) {
            addCriterion("login_time <", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThanOrEqualTo(Date value) {
            addCriterion("login_time <=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIn(List<Date> values) {
            addCriterion("login_time in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotIn(List<Date> values) {
            addCriterion("login_time not in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeBetween(Date value1, Date value2) {
            addCriterion("login_time between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotBetween(Date value1, Date value2) {
            addCriterion("login_time not between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(Double value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(Double value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(Double value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(Double value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(Double value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<Double> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<Double> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(Double value1, Double value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(Double value1, Double value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(Double value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(Double value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(Double value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(Double value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(Double value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<Double> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<Double> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(Double value1, Double value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(Double value1, Double value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLocateAddressIsNull() {
            addCriterion("locate_address is null");
            return (Criteria) this;
        }

        public Criteria andLocateAddressIsNotNull() {
            addCriterion("locate_address is not null");
            return (Criteria) this;
        }

        public Criteria andLocateAddressEqualTo(String value) {
            addCriterion("locate_address =", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressNotEqualTo(String value) {
            addCriterion("locate_address <>", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressGreaterThan(String value) {
            addCriterion("locate_address >", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressGreaterThanOrEqualTo(String value) {
            addCriterion("locate_address >=", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressLessThan(String value) {
            addCriterion("locate_address <", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressLessThanOrEqualTo(String value) {
            addCriterion("locate_address <=", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressLike(String value) {
            addCriterion("locate_address like", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressNotLike(String value) {
            addCriterion("locate_address not like", value, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressIn(List<String> values) {
            addCriterion("locate_address in", values, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressNotIn(List<String> values) {
            addCriterion("locate_address not in", values, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressBetween(String value1, String value2) {
            addCriterion("locate_address between", value1, value2, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateAddressNotBetween(String value1, String value2) {
            addCriterion("locate_address not between", value1, value2, "locateAddress");
            return (Criteria) this;
        }

        public Criteria andLocateCityIsNull() {
            addCriterion("locate_city is null");
            return (Criteria) this;
        }

        public Criteria andLocateCityIsNotNull() {
            addCriterion("locate_city is not null");
            return (Criteria) this;
        }

        public Criteria andLocateCityEqualTo(String value) {
            addCriterion("locate_city =", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityNotEqualTo(String value) {
            addCriterion("locate_city <>", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityGreaterThan(String value) {
            addCriterion("locate_city >", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityGreaterThanOrEqualTo(String value) {
            addCriterion("locate_city >=", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityLessThan(String value) {
            addCriterion("locate_city <", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityLessThanOrEqualTo(String value) {
            addCriterion("locate_city <=", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityLike(String value) {
            addCriterion("locate_city like", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityNotLike(String value) {
            addCriterion("locate_city not like", value, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityIn(List<String> values) {
            addCriterion("locate_city in", values, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityNotIn(List<String> values) {
            addCriterion("locate_city not in", values, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityBetween(String value1, String value2) {
            addCriterion("locate_city between", value1, value2, "locateCity");
            return (Criteria) this;
        }

        public Criteria andLocateCityNotBetween(String value1, String value2) {
            addCriterion("locate_city not between", value1, value2, "locateCity");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}